<template>
    <view class="container">
        <text-nav-bar @__l="__l" :title="title" vueId="28167a1a-1"></text-nav-bar>
        <page-render @__l="__l" :page="page" theme="default" vueId="28167a1a-2"></page-render>
        <view class="footer safe-area-bottom global-shadow">
            <button @tap="__e" class="submit" :data-event-opts="[['tap', [['e0', ['$event']]]]]">选择VIP套餐</button>
        </view>
        <pay-card
            @__l="
                __l($event, {
                    eventOpts: [
                        ['^success', [['successPay']]],
                        ['^cancel', [['e1']]]
                    ]
                })
            "
            @cancel="
                __e($event, {
                    eventOpts: [
                        ['^success', [['successPay']]],
                        ['^cancel', [['e1']]]
                    ]
                })
            "
            @success="
                __e($event, {
                    eventOpts: [
                        ['^success', [['successPay']]],
                        ['^cancel', [['e1']]]
                    ]
                })
            "
            :data-event-opts="[
                ['^success', [['successPay']]],
                ['^cancel', [['e1']]]
            ]"
            vueId="28167a1a-3"
            v-if="isShowSku"
        ></pay-card>
    </view>
</template>

<script>
import textNavBar from '@/components/TextNavBar/TextNavBar';
import pageRender from '@/components/PageRender/PageRender';
import payCard from '@/pages/buyVip/components/PayCard';
import tabBar from '@/components/TabBar/tabBar';
(global.webpackJsonp = global.webpackJsonp || []).push([
    ['pages/buyVip/index'],
    {
        '17dd': function (e, t, n) {
            'use strict';

            n.r(t);
            var r = n('886e');
            var o = n('f388');
            for (var c in o) {
                if (['default'].indexOf(c) < 0) {
                    (function (e) {
                        n.d(t, e, function () {
                            return o[e];
                        });
                    })(c);
                }
            }
            n('b182');
            var u = n('f0c5');
            var i = Object(u.a)(o.default, r.b, r.c, false, null, null, null, false, r.a, void 0);
            t.default = i.exports;
        },
        '4e73': function (e, t, n) {
            'use strict';

            (function (e, t) {
                var r = n('4ea4');
                n('18ba');
                r(n('66fd'));
                var o = r(n('17dd'));
                e.__webpack_require_UNI_MP_PLUGIN__ = n;
                t(o.default);
            }.call(this, n('bc2e').default, n('543d').createPage));
        },
        '886e': function (e, t, n) {
            'use strict';

            n.d(t, 'b', function () {
                return o;
            });
            n.d(t, 'c', function () {
                return c;
            });
            n.d(t, 'a', function () {
                return r;
            });
            var r = {
                TextNavBar: function () {
                    return n.e('components/TextNavBar/TextNavBar').then(n.bind(null, '9141'));
                },
                PageRender: function () {
                    return Promise.all([n.e('common/vendor'), n.e('components/PageRender/PageRender')]).then(n.bind(null, 'b4aa'));
                }
            };
            var o = function () {
                var that = this;
                that.$createElement;
                that._self._c;
                that._isMounted ||
                    ((that.e0 = function (t) {
                        that.isShowSku = true;
                    }),
                    (that.e1 = function (t) {
                        that.isShowSku = false;
                    }));
            };
            var c = [];
        },
        a485: function (e, t, n) {},
        b182: function (e, t, n) {
            'use strict';

            var r = n('a485');
            n.n(r).a;
        },
        d4ac: function (e, t, n) {
            'use strict';

            (function (e) {
                var r = n('4ea4');
                Object.defineProperty(t, '__esModule', {
                    value: true
                });
                t.default = void 0;
                var o = r(n('9523'));
                function c(e, t) {
                    var n = Object.keys(e);
                    if (Object.getOwnPropertySymbols) {
                        var r = Object.getOwnPropertySymbols(e);
                        if (t) {
                            r = r.filter(function (t) {
                                return Object.getOwnPropertyDescriptor(e, t).enumerable;
                            });
                        }
                        n.push.apply(n, r);
                    }
                    return n;
                }
                function u(e) {
                    for (var t = 1; t < arguments.length; t++) {
                        if (null != arguments[t]) {
                            var n = arguments[t];
                        } else {
                            var n = {};
                        }
                        if (t % 2) {
                            c(Object(n), true).forEach(function (t) {
                                (0, o.default)(e, t, n[t]);
                            });
                        } else {
                            Object.getOwnPropertyDescriptors
                                ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
                                : c(Object(n)).forEach(function (t) {
                                      Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
                                  });
                        }
                    }
                    return e;
                }
                var i = {
                    components: {
                        PayCard: function () {
                            Promise.all([n.e('common/vendor'), n.e('pages/buyVip/components/PayCard')])
                                .then(
                                    function () {
                                        return resolve(n('ef0d'));
                                    }.bind(null, n)
                                )
                                .catch(n.oe);
                        }
                    },
                    data: function () {
                        return {
                            isShowSku: false
                        };
                    },
                    mounted: function () {
                        e.setNavigationBarTitle({
                            title: this.title
                        });
                    },
                    computed: u(
                        u({}, (0, n('26cb').mapGetters)(['userInfo'])),
                        {},
                        {
                            title: function () {
                                return this.$store.getters.setting.vip_page.title || 'VIP会员';
                            },
                            page: function () {
                                return this.$store.getters.setting.vip_page;
                            }
                        }
                    ),
                    methods: {
                        successPay: function () {
                            this.isShowSku = false;
                            e.showModal({
                                content: '恭喜您成功购买会员套餐~',
                                success: function (t) {
                                    e.switchTab({
                                        url: '/pages/center/index'
                                    });
                                }
                            });
                        }
                    }
                };
                t.default = i;
            }.call(this, n('543d').default));
        },
        f388: function (e, t, n) {
            'use strict';

            n.r(t);
            var r = n('d4ac');
            var o = n.n(r);
            for (var c in r) {
                if (['default'].indexOf(c) < 0) {
                    (function (e) {
                        n.d(t, e, function () {
                            return r[e];
                        });
                    })(c);
                }
            }
            t.default = o.a;
        }
    },
    [['4e73', 'common/runtime', 'common/vendor']]
]);
</script>
<style>
@import './index.css';
</style>
